package comday02.itheima01;

public class Demo06赋值运算符 {
    public static void main(String[] args) {

        //把10赋值给int类型的变量a
        int a = 10;

        //扩展赋值运算符
        a += 20;       //相当于：  a = a + 20;

        //输出
        System.out.println(a);


        int b = 10;

        //扩展的赋值运算符里面隐含了强制转换
        b += 3.14;

        System.out.println(b);  //13

    }
}
